Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 329 Bytes

2.6.11 - onBufferEmpty.md

File metadata and controls

10 lines (7 loc) · 329 Bytes

onBufferEmpty

当缓存区低于最低水位线时触发此事件。

function onBufferEmpty(Swoole\Server $serv, int $fd);
  • 设置server->buffer_low_watermark来控制缓存区低水位线
  • 触发此事件后,表明当前的$fd发送队列中的数据已被发出,可以继续向此连接发送数据了